<script>
	'use strict'
	const express = require('express')
	const axios = require('axios')
	module.exports = function() {
		let app = express()
		app.get('/api/getDiscList', (req, res) => {
			let url = '请求地址'
			axios.get(url, {
				headers: {
					// 这里请求的是 QQ 音乐的接口，带上下面参数是为了骗服务器是自己人
					referer: 'https://c.y.qq.com/',
					host: 'c.y.qq.com'
				},
				params: req.query
			}).then((response) => {
				res.json(response.data)
			}).catch((e) => {
				console.log(e)
			})
		})
		app.listen(3000)
	}
</script>